<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Xpert Advanced search</title>
<style>

	html{
	
		margin:0px;
		padding:0px;
		font-family:Verdana, Arial, Helvetica, sans-serif;
	
	}
	
	body{
	
		margin:0px;
		padding:0px;
	
	}
	
	.top_wrapper{

		width:100%; 
		background-color:#F9F9F9; 
		height:44px
	
	}
	
	.text_centre{
		
		width:950px; 
		margin:0 auto; 
		text-align:center;
	
	}
	
	.top_left{
	
		width:500px; 
		float:left; 
		position:relative; 
		text-align:left; 
		font-size:80%; 
		font-weight:bold; 
		color:#434343; 
		padding-top:12px;
	
	}
	
	.top_left span{
		
		border-left:1px solid #D6D6D6; 
		padding:0 10px
	
	}
	
	.top_left span a, .top_right span a{
	
		color:#434343;
		
	}
	
	.top_right{
	
		width:450px; 
		float:right; 
		position:relative; 
		height:100%; 
		text-align:left; 
		font-size:80%; 
		font-weight:bold; 
		color:#434343; 
		padding-top:12px;
	
	}
	
	.top_right span{
		
		border-left:1px solid #D6D6D6; 
		padding:0 10px;
		
	}
	
	.main_wrapper{
	
		float:left; 
		position:relative; 
		width:100%; 
		text-align:center;
	
	}
	
	.page_holder{
	
		width:900px; 
		text-align:left; 
		margin:0 auto; 
		height:100px;
	
	}
	
	.logo{
		
		float:left; 
		position:relative; 
		height:100px; 
		width:149px;
	
	}
	
	.contributors{
	
		float:left; 
		position:relative; 
		height:500px; 
		width:100%; 
		background-color:#FFFFFF;  
		margin-top:20px; 
		text-align:center
	
	}
	
	.contributors a{
	
		color:#7C7C7C; 
		text-decoration:none;
	
	}

	.index_holder{
	
		width:950px; 
		margin:0 auto; 
		text-align:center;
	
	}
	
	.index_left{
	
		width:500px; 
		float:left; 
		position:relative; 
		height:500px; 
		background-color:#FFFFFF; 
		text-align:center;
	
	}
	
	.index_left p{
	
		font-size:80%; 
		font-weight:bold; 
		margin-top:40px;
	
	}
	
	.index_left p a{
	
		color:#434343;
	
	}
	
	.tag_cloud{
	
		width:450px; 
		float:left; 
		position:relative; 
		height:500px; 
		text-align:left
	
	}
	
	.tag_cloud p{
	
		color:#9C8A5A; 
		font-weight:bold; 
		font-size:110%; 
		padding-top:38px;
	
	}
	
	.submit_centre{
	
		width:900px; 
		text-align:left; 
		margin:0 auto; 
		height:100px;
		
	}
	
	.top_search_box{
	
		float:left; 
		position:relative; 
		margin-left:20px;
		
	}
	
	.top_search_box p{
	
		font-size:75%; 
		font-weight:bold;
	
	}
	
	.top_search_box p a{
	
		color:#434343;
	
	}
	
	.results_holder{
	
		width:900px; 
		text-align:left; 
		margin:0 auto; 
		clear:left; 
		border-top:1px solid #D2c598; 
		color:#665723; 
		font-weight:bold; 
		height:20px; 
		padding-top:10px; 
		margin-bottom:25px;
	
	}
	
	.pages{
	
		float:right; 
		font-size:80%; 
		color:#333;	
		
	}
	
	.pages span, .pages span a{
	
		color:#665723;
	
	}
	
	.button_bar_index{
	
		float:left; 
		position:relative; 
		width:100%; 
		height:30px; 
		font-weight:bold; 
		background-color:#F5F5F5; 
		font-size:80%;
	
	}
	
	.license{
	
		float:left; 
		position:relative; 
		width:150px; 
		padding:5px; 
		color:#766B2B; 
		background-color:#DAD7D2; 
		text-align:center;  
		margin-right:5px; 
		cursor:hand; 
		cursor:pointer;
				
	}
	
	.related{
	
		float:left; 
		position:relative; 
		background-color:#A9A9A9; 
		width:150px; 
		padding:5px; 
		text-align:center; 
		margin-right:5px; 
		cursor:hand; 
		cursor:pointer;
	
	}
	
	.recommend{
	
		float:left; 
		position:relative; 
		background-color:#A9A9A9; 
		width:150px; 
		padding:5px; 
		text-align:center;  
		margin-right:5px; 
		cursor:hand; 
		cursor:pointer;
	
	}
	
	.tab_holder{
	
		background-color:#F5F5F5; 
		font-size:80%; 
		width:100%
		
	}
	
	.relation{
	
		border-top:1px solid #655723; 
		margin:10px; 
		padding:10px; 
		display:none;
	
	}
	
	.recommender{
	
		border-top:1px solid #655723; 
		margin:10px; 
		padding:10px; 
		display:none
	
	}
	
	.browse_holder{
	
		width:900px; 
		text-align:left; 
		margin:0 auto; 
		clear:left; 
		border-top:1px solid #D2c598; 
		color:#665723; 
		font-weight:bold; 
		height:20px; 
		padding-top:10px; 
		padding-left:20px; 
		margin-bottom:25px;
	
	}
	
	.lower_browse_holder{
	
		width:850px; 
		text-align:left; 
		color:#665723; 
		padding-top:10px; 
		margin-bottom:25px;
	
	}
	
	.left_form{
	
		width:440px; 
		float:left; 
		position:relative; 
		color:#000;  
		margin-bottom:25px; 
		font-weight:bold;
	
	}
	
	.right_form{
	
		width:440px; 
		float:left; 
		position:relative; 
		color:#000;  
		margin-bottom:25px; 
		font-weight:bold;
	
	}
	
	.as_right_form{
	
		width:410px;
		float:left;
		position:relative;
		text-align:left;
		color:#665723; 
		font-weight:bold; 
		margin-bottom:25px; 
	
	}

</style>
<script language="javascript" type="text/javascript" src="display_and_email.js"></script>
</head>
<body>
	<div class="top_wrapper">
		<div class="text_centre">
			<div class="top_left">
				<span>  
					<a href="http://www.nottingham.ac.uk/xpert/">Back to main page</a>  
				</span>
			</div>
			<div class="top_right">
						<span>  <a href="feedsubmit.php">Submit a link</a>  </span><span>  <a href="rss.php">Subscribe to RSS</a>  </span><span><a href="about.php">About</a></span><span><a href="contributors.php">Contributors</a></span>
			</div>
		</div>
	</div>
	<div class="main_wrapper">
		<div class="page_holder">
			<div class="logo">
				<img src="http://www.nottingham.ac.uk/xpert/images/logoresults.gif" />
			</div>
			<div class="top_search_box" style="margin-top:10px">
				<p>
					<a href="browse.php">Browse</a>
				</p>	
			</div>
		<div class="browse_holder">
			<div style="float:left">Advanced search
			</div>
		</div>
		<div style="width:850px; text-align:left; color:#665723; padding-top:10px; margin-bottom:25px;">
			<form action="scoreresults.php" method="get" enctype="multipart/form-data">
<div class="left_form">
	<p style="font-size:80%; font-weight:bold; margin:10px 0 0 0; padding:0px">Enter search terms</p>
<input type="text" size="70" name="advancedwords" value="<? echo $_SESSION['search_string'] ?>" />
</div>
<div style="width:440px; float:left; position:relative; color:#000;  margin-bottom:25px; font-weight:bold; ">
<p style="font-size:80%; margin:10px 0 0 0; padding:0px">Institution</p>
<select name="contributor" style="width:300px">
<?

	include "xpert_database.php";
	
	xpert_database_connect($xpert_site);
	
	xpert_database_select($xpert_site);
	
	$query = "select distinct resource_contributor from xpert_core_contributor where resource_contributor !=\"\" order by resource_contributor ASC";	
	
	$site_questions = xpert_database_multiple_select_query($query, $xpert_site);
	
	echo "<option value=\"All\">All</option>";
	
	while($site_questions_object = xpert_database_fetch_object_from_response($site_questions)){
	
		echo "<option ";
		
		if($_POST['contributor']==$site_questions_object->resource_contributor){
		
			echo "selected=\"selected\"";
		
		}
		
		echo " value=\"" . $site_questions_object->resource_contributor . "\">" . $site_questions_object->resource_contributor . "</option>";
		
	}
	
?>
</select><p style="font-size:80%; margin:10px 0 0 0; padding:0px">Author</p><select name="creator" style="width:300px">
<?

$query = "select distinct resource_creator from xpert_core_creator where resource_creator !=\"\" order by resource_creator ASC";	
	
	$site_questions = xpert_database_multiple_select_query($query, $xpert_site);
	
	echo "<option value=\"All\">All</option>";
	
	while($site_questions_object = xpert_database_fetch_object_from_response($site_questions)){
	
		echo "<option ";
		
		if($_POST['creator']==$site_questions_object->resource_creator){
		
			echo "selected=\"selected\"";
		
		}
		
		echo " value=\"" . $site_questions_object->resource_creator . "\">" . $site_questions_object->resource_creator . "</option>";
		
	}
	
?>
</select><p style="font-size:80%; margin:10px 0 0 0; padding:0px">Type</p><select name="format" style="width:300px">
<?

$query = "select distinct resource_format from xpert_core_format where resource_format !=\"\" order by resource_format ASC";	
	
	$site_questions = xpert_database_multiple_select_query($query, $xpert_site);
	
	echo "<option value=\"All\">All</option>";
	
	while($site_questions_object = xpert_database_fetch_object_from_response($site_questions)){
	
		echo "<option ";
		
		if($_POST['format']==$site_questions_object->resource_format){
		
			echo "selected=\"selected\"";
		
		}
		
		echo " value=\"" . $site_questions_object->resource_format . "\">" . $site_questions_object->resource_format . "</option>";
		
	}
	
?></select><p style="font-size:80%; margin:10px 0 0 0; padding:0px">Language</p><select name="language" style="width:300px">
<?

$query = "select distinct resource_language from xpert_core_language where resource_language !=\"\" order by resource_language ASC";	
	
	$site_questions = xpert_database_multiple_select_query($query, $xpert_site);
	
	echo "<option value=\"All\">All</option>";
	
	while($site_questions_object = xpert_database_fetch_object_from_response($site_questions)){
	
		echo "<option ";
		
		if($_POST['language']==$site_questions_object->resource_language){
		
			echo "selected=\"selected\"";
		
		}
		
		echo " value=\"" . $site_questions_object->resource_language . "\">" . $site_questions_object->resource_language . "</option>";
		
	}
	
?>
</select></div><div class="as_right_form"><p style="font-size:80%; margin:10px 0 0 0; padding:0px">Publisher</p><select name="publisher" style="width:400px">
<?

$query = "select distinct resource_publisher from xpert_core_publisher where resource_publisher !=\"\" order by resource_publisher ASC";	
	
	$site_questions = xpert_database_multiple_select_query($query, $xpert_site);
	
	echo "<option value=\"All\">All</option>";
	
	while($site_questions_object = xpert_database_fetch_object_from_response($site_questions)){
	
		echo "<option ";
		
		if($_POST['publisher']==$site_questions_object->resource_publisher){
		
			echo "selected=\"selected\"";
		
		}
		
		echo " value=\"" . $site_questions_object->resource_publisher . "\">" . $site_questions_object->resource_publisher . "</option>";
		
	}
?>
	</select><p style="font-size:80%; margin:10px 0 0 0; padding:0px">Rights</p><select name="rights" style="width:400px">
<?

$query = "select distinct resource_rights from xpert_core_rights where resource_rights !=\"\" order by resource_rights ASC";	
	
	$site_questions = xpert_database_multiple_select_query($query, $xpert_site);
	
		echo "<option value=\"All\">All</option>";
	
	while($site_questions_object = xpert_database_fetch_object_from_response($site_questions)){
	
		echo "<option ";
		
		if($_POST['rights']==$site_questions_object->resource_rights){
		
			echo "selected=\"selected\"";
		
		}
		
		echo " value=\"" . $site_questions_object->resource_rights . "\">" . substr($site_questions_object->resource_rights,0,60) . "</option>";
		
	}
	
?>
</select><p style="font-size:80%; margin:10px 0 0 0; padding:0px">Keywords</p><select name="subject" style="width:400px">
<?

$query = "select distinct resource_subject from xpert_core_subject where resource_subject !=\"\" order by resource_subject ASC";	
	
	$site_questions = xpert_database_multiple_select_query($query, $xpert_site);
	
		echo "<option value=\"All\">All</option>";
	
	while($site_questions_object = xpert_database_fetch_object_from_response($site_questions)){
	
		echo "<option ";
		
		if($_POST['subject']==$site_questions_object->resource_subject){
		
			echo "selected=\"selected\"";
		
		}
		
		echo " value=\"" . $site_questions_object->resource_subject . "\">" . substr($site_questions_object->resource_subject,0,60) . "...</option>";
		
	}
	
?>
</select>
<input type="image" src="http://www.nottingham.ac.uk/xpert/images/search.gif" style="position:relative; top:15px" />
</form></div>
<!-- Start - Webtrends tagging -->
<script type="text/javascript"
src="http://www.nottingham.ac.uk/common/webtrends/sdc-advanced-tracking.
js"></script>
<script type="text/javascript">
//<![CDATA[
	var gDomain = "uiwwwwbt01.ad.nottingham.ac.uk";
	var gDcsId  = "dcsuhohgd10000oiqfkmqufiu_6c8f"; // ]]> </script> <script type="text/javascript"
src="http://www.nottingham.ac.uk/common/webtrends/sdc.js"></script>
<noscript><img alt="" border="0" name="dcsimg" width="1" height="1"
src="http://uiwwwwbt01.ad.nottingham.ac.uk/dcsuhohgd10000oiqfkmqufiu_6c8
f/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=8.0.0"
/></noscript>
<!-- End - Webtrends tagging -->

</body>
</html>